package  com.pcbly.web.business.crm;

/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.persistence.crm.YufuToYingfuDao;
import com.pcbly.web.bean.crm.YufuToBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;

 
public class YufuToYingfuServiceImp extends BaseServiceImp<YufuToBean> implements YufuToYingfuService {
	 public YufuToYingfuServiceImp() {
		super();
		// TODO Auto-generated constructor stub
	}
	private YufuToYingfuDao yufuToYingfuDao;
	
	public void setYufuToYingfuDao(YufuToYingfuDao yufuToYingfuDao) {
		this.yufuToYingfuDao = yufuToYingfuDao;
	}
	
	@Override
	public YufuToBean getYufuToYingfuBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return yufuToYingfuDao.get(YufuToBean.class,id);
	}
	
	@Override
	public void removeYufuToYingfuBeanById(String id) throws Exception{
		yufuToYingfuDao.removeYufuToYingfuBeanById(id);
	}
	
	@Override
	public void removeYufuToYingfuBeanByIds(String ids) throws Exception{
		yufuToYingfuDao.removeYufuToYingfuBeanByIds(ids);
	}
	
	
	@Override
	public YufuToBean saveYufuToYingfuBean(YufuToBean crm) throws Exception{
		return yufuToYingfuDao.saveYufuToYingfuBean(crm);
	}
	
	@Override
	public YufuToBean updateYufuToYingfuBean(YufuToBean crm) throws Exception{
		yufuToYingfuDao.saveObject( crm);
		return crm;
	}
	public Page<YufuToBean>  findYufuToYingfuBeanByCond(YufuToBean bean,
			Page<YufuToBean> page, String orderByName, boolean asc)
			throws Exception{
		return yufuToYingfuDao.findYufuToYingfuBeanByCond(
				bean, page, orderByName, asc);
	}
}
